2 #define BEEP_REPEAT_PAUSE 10
5 uint8_t beeper_mask_clock = 0;
7 void beep_handler( void ){
9 static uint8_t beeper_cnt = 0;
10 static uint16_t beeper_mask_cnt = 0;
12 if ( beeper_cnt++ % 4 == 0 && beeper_mask != 0 ){
14 if( beeper_mask_cnt++ < BEEP_LEN ) { // 0.1s in periods of timer
15 if(beeper_mask & 1) output_toggle(PORTA, BEEP); else output_low(PORTA, BEEP);
17 output_low(PORTA, BEEP);